const schemas = {
  "addDemand": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "id": {
            "type": "string",
            "description": "需求入库成功编号"
          }
        },
        "required": [
          "optResult",
          "id"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "listDemand": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "demands": {
            "type": "array",
            "description": "需求内容列表",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "需求名称"
                },
                "level": {
                  "type": "number",
                  "description": "需求重要程度，取值\n0:重要；1：较重要；2:普通"
                },
                "openId": {
                  "type": "string",
                  "description": "需求id，用于打通禅道等项目管理工具"
                },
                "desc": {
                  "type": "string",
                  "description": "需求描述"
                },
                "id": {
                  "type": "number",
                  "description": "需求序号"
                }
              },
              "required": [
                "name",
                "level",
                "id"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "demands"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modDemand": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getDemandContent": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "demand": {
            "type": "object",
            "required": [
              "name",
              "level",
              "id"
            ],
            "description": "需求内容",
            "properties": {
              "name": {
                "type": "string",
                "description": "需求名称"
              },
              "level": {
                "type": "number",
                "description": "需求重要程度，取值\n0:重要；1：较重要；2:普通"
              },
              "openId": {
                "type": "string",
                "description": "需求id，用于打通禅道等项目管理工具"
              },
              "desc": {
                "type": "string",
                "description": "需求描述"
              },
              "id": {
                "type": "number",
                "description": "需求序号"
              }
            }
          }
        },
        "required": [
          "optResult",
          "demand"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteDemand": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteDemandCase": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
